package com.idroc.coelacanth.core.storage;

/**
 * 数据库游标
 * @author yuyoo (yuyoo4j@163.com)
 * @date 2009-12-15 上午09:48:18
 */
public interface Cursor {

	void open();
	void close();
	
	long count();
	
	boolean saveCurrent(Record r);
	boolean deleteCurrent();	
	
	Record getCurrent();
	
	Record locateTo(Record r);
	Record closeTo(Record r);
	
	Record getNext();
	Record getPrev();
	
	Record getFirst();
	Record getLast(); 
}
